Set background upon state changes. (#301651, Billy Biggs)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Apr 2005 18:50:03 +0000 (18:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 29 Apr 2005 18:50:03 +0000 (18:50 +0000)
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
background upon state changes.  (#301651, Billy Biggs)
(gtk_tree_view_get_path_at_pos): Take RTL into account
when iterating over the columns.  (#302163)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c

index 80c49dfeb344fd9f5d3f993a5c9e158cae2a49aa..03231717ea7a27caf75b01cd1289fa56c61d0996 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
        * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
        background upon state changes.  (#301651, Billy Biggs)
+       (gtk_tree_view_get_path_at_pos): Take RTL into account
+       when iterating over the columns.  (#302163)
        
        * configure.in: Check for nm.
 
index 80c49dfeb344fd9f5d3f993a5c9e158cae2a49aa..03231717ea7a27caf75b01cd1289fa56c61d0996 100644 (file)
@@ -2,6 +2,8 @@
 
        * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
        background upon state changes.  (#301651, Billy Biggs)
+       (gtk_tree_view_get_path_at_pos): Take RTL into account
+       when iterating over the columns.  (#302163)
        
        * configure.in: Check for nm.
 
index 80c49dfeb344fd9f5d3f993a5c9e158cae2a49aa..03231717ea7a27caf75b01cd1289fa56c61d0996 100644 (file)
@@ -2,6 +2,8 @@
 
        * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
        background upon state changes.  (#301651, Billy Biggs)
+       (gtk_tree_view_get_path_at_pos): Take RTL into account
+       when iterating over the columns.  (#302163)
        
        * configure.in: Check for nm.
 
index 2e60e1395e3ecb97ce96f3008c1b388f9b9b1706..bf5bddae14e976ab4de49073c01af95806d1553d 100644 (file)
@@ -11318,8 +11318,12 @@ gtk_tree_view_get_path_at_pos (GtkTreeView        *tree_view,
       GList *list;
       gint remaining_x = x;
       gboolean found = FALSE;
+      gboolean rtl;
 
-      for (list = tree_view->priv->columns; list; list = list->next)
+      rtl = (gtk_widget_get_direction (GTK_WIDGET (tree_view)) == GTK_TEXT_DIR_RTL);
+      for (list = (rtl ? g_list_last (tree_view->priv->columns) : g_list_first (tree_view->priv->columns));
+          list;
+          list = (rtl ? list->prev : list->next))
        {
          tmp_column = list->data;